<%@page contentType="text/html" pageEncoding="UTF-8"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
 <title>Manager Promotion Code</title>
 <script src="../Prototype.js" type="text/javascript"></script>
 <script src="./js/rico.js" type="text/javascript"></script>

<script type='text/javascript'>
 Rico.loadModule('LiveGridForms','grayedout.css');
</script>
<style type="text/css">
div.ricoLG_cell {
 white-space:nowrap;
}
</style>
</head>
<body>

<p class='ricoBookmark'><span id='shippers_timer' class='ricoSessionTimer'></span>
 <span id='shippers_bookmark' class='ricoBookmark'>&nbsp;</span>
 <span id='shippers_savemsg' class='ricoSaveMsg'></span>
</p>
<div id='shippers'></div>
<script type='text/javascript'>
Rico.acceptLanguage('en-us,en;q=0.5');
var shippers = {};
shippers['options'] = {
  TableSelectNew: "___new___",
  TableSelectNone: "",
  canAdd: true,
  canEdit: true,
  canDelete: true,
  ConfirmDelete: true,
  ConfirmDeleteCol: 1,
  DebugFlag: false,
  prefetchBuffer: true,
  PanelNamesOnTabHdr: true,
  highlightElem: "menuRow",
  sortCol: 1,
  sortDir: "ASC",
  columnSpecs : [
    { FieldName:'shippers_0',
      panelIdx: 0,
      ReadOnly: false,
      ColName: "ShipperID",
      Hdg: "ID",
      EntryType: "B",
      ColData: "<auto>",
      width: 50,
      isNullable:false,
      Writeable:false,
      isKey:true,
      Length:11 },
    { FieldName:'shippers_1',
      panelIdx: 0,
      ReadOnly: false,
      ColName: "CompanyName",
      Hdg: "Company Name",
      EntryType: "B",
      ColData: "",
      width: 150,
      isNullable:false,
      Writeable:true,
      isKey:false,
      Length:40 },
    { FieldName:'shippers_2',
      panelIdx: 0,
      ReadOnly: false,
      ColName: "Phone",
      Hdg: "Phone Number",
      EntryType: "B",
      ColData: "",
      width: 150,
      isNullable:true,
      Writeable:true,
      isKey:false,
      Length:24 }
  ]
};
Rico.onLoad(function() {
 if(typeof RicoUtil=='undefined') throw('LiveGridForms requires the RicoUtil Library');
 if(typeof RicoTranslate=='undefined') throw('LiveGridForms requires the RicoTranslate Library');
 if(typeof Rico.LiveGrid=='undefined') throw('LiveGridForms requires the Rico.LiveGrid Library');
 if(typeof Rico.GridMenu=='undefined') throw('LiveGridForms requires the Rico.GridMenu Library');
 if(typeof Rico.Buffer=='undefined') throw('LiveGridForms requires the Rico.Buffer Library');
 if(typeof Rico.Buffer.AjaxSQL=='undefined') throw('LiveGridForms requires the Rico.Buffer.AjaxSQL Library');

 shippers['buffer']=new Rico.Buffer.AjaxSQL('PromotionCode');
 if(typeof shippers_GridInit=='function') shippers_GridInit();

 shippers['grid']=new Rico.LiveGrid('shippers',shippers['buffer'],shippers['options']);
 shippers['grid'].menu=new Rico.GridMenu();
 if(typeof shippers_FormInit=='function') shippers_FormInit();

 shippers['edit']=new Rico.TableEdit(shippers['grid']);
 if(typeof shippers_InitComplete=='function') shippers_InitComplete();
});
</script>


</body>
</html>
